package mqtt.utils;

public class du {
    private static final String[] BANNER = {"                             ____    ____          _     _    \n" +
            "                            |_   \\  /   _|        / |_  / |_  \n" +
            " .---.  ,--.   .--.    _   __ |   \\/   |   .--. _`| |-'`| |-' \n" +
            "/ /__\\\\`'_\\ : ( (`\\]  [ \\ [  ]| |\\  /| | / /'`\\' ]| |   | |   \n" +
            "| \\__.,// | |, `'.'.   \\ '/ /_| |_\\/_| |_| \\__/ | | |,  | |,  \n" +
            " '.__.'\\'-;__/[\\__) )[\\_:  /|_____||_____|\\__.; | \\__/  \\__/  \n" +
            "                      \\__.'                   |__]            "};

    private static final String SPRING_BOOT = "lamb :: easy mqtt :: version:";

    private static final int STRAP_LINE_SIZE = 42;


    public static void printBanner(String versionh) {
        for (String line : BANNER) {
            System.out.println(line);
        }
        String version = SPRING_BOOT + versionh;
//        version = (version != null) ? " (v" + version + ")" : "";
//        StringBuilder padding = new StringBuilder();
//        while (padding.length() < STRAP_LINE_SIZE
//                - (version.length() + SPRING_BOOT.length())) {
//            padding.append(" ");
//        }
        // System.out.println("1", padding.toString(), "2", version);
        System.out.println(version);
    }


}
